Systems and methods for using operating system (os) virtualisation for minimizing power consumption in mobile phones

ABSTRACT

A mobile phone that uses OS virtualization for minimizing power consumption in mobile phones is provided. A mobile phone according to the invention may include a plurality of application stacks and a plurality of processor cores. Each of the application stacks preferably corresponds to one of the plurality of processor cores. The mobile phone also includes a hypervisor. In a first state, the hypervisor allocates tasks from each of the application stacks to the processor core that corresponds to the respective application stack. In a second state, the hypervisor allocates selected tasks from the plurality of application stacks to a single processor core. The second state may be an idle state and the tasks that are allocated to the single processor core may be periodic tasks.

FIELD OF TECHNOLOGY

This invention relates to techniques used to minimize power consumption in a mobile phone. More particularly this invention relates to reducing idle time power consumption in a mobile phone.

BACKGROUND OF THE INVENTION

In a mobile phone, it is important to preserve power as much as possible to maximize battery life. To preserve power, each operating system (“OS”) resident in the mobile phone looks for idle time when there is no processing to be done and attempts to put its associated hardware to “sleep”—i.e., to inactivate the hardware to the extent possible, so that the OS consumes less or no power during that idle time.

OSes in a mobile phone typically control the application stack, the modem, the Wi-Fi, the Bluetooth, the Mobile TV, just to name a selected portion of the applications controlled by OSes in a cell phone. During idle times, such OSes typically perform periodic tasks. Before going idle—“to sleep”—the OSes schedule themselves to wake up for these periodic tasks. These periodic tasks may include, for example, the modem stack checking the paging channel for incoming calls and the user interface (“UI”) OS checking the battery status and updating the clock on the display. Often these tasks are dependent on waking another of the OSes—for example the UI OS may need to wake up the modem OS to get the current mobile signal strength to update the cell phone display.

Under normal usage, these regular wake-up events consume a majority of a mobile phone's battery. A large proportion of that power consumption happens during the actual wake-up and going back to sleep mechanism for each of the processing cores associated with each OS.

Accordingly, any mechanism that can be implemented to reduce this power consumption is desirable.

SUMMARY OF THE INVENTION

A system and/or method for reducing power consumption of a mobile phone, substantially as shown in and/or described in connection with at least one of the figures, as set forth more completely in the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:

FIG. 1 shows a schematic diagram of a conventional cell phone;

FIG. 2 shows another schematic diagram of a conventional cell phone;

FIG. 3 shows a shows a schematic version of the conventional operation of a hypervisor;

FIG. 4 shows a schematic diagram of a cell phone that may benefit from hypervisor technology according to the invention;

FIG. 5 shows a diagram of the power consumption over time for a conventional processor core;

FIG. 6 shows a diagram of the power consumption over time for a processor core according to the invention; and

FIG. 7 shows a schematic diagram of an illustrative single or multi-chip module of this invention in a data processing system.

DETAILED DESCRIPTION OF THE INVENTION

In the following description of the various embodiments, reference is made to the accompanying drawings, which form a part hereof, and in which is shown by way of illustration various embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural and functional modifications may be made without departing from the scope and spirit of the present invention.

Increasingly mobile phones have more than one processing core—i.e., the hardware typically referred to as the central processing unit (“CPU”). Particularly, “smart-phones” that contain fully-featured user interface (“UI”) operating systems (“OS”) such as Windows Mobile™, Symbian™ or Linux™, implement multiple processing cores. A typical smart-phone will have one silicon-chip based hardware core running the UI OS, another core running the modem stack OS and possibly other cores running other peripheral software stacks such as GPS, WiFi, Mobile TV, multimedia, Bluetooth, etc. For the purposes of this application the term stack may be defined as a software component resident in a device memory that preferably relates to a particular software application. Such exemplary software applications that may be supported by their own dedicated stack include a user interface application or a mobile communications data processing stack. A stack can contain its own dedicated OS.

The present invention is based around OS virtualization or “hypervisor” technology. A hypervisor is software that runs (as an operating system control program) directly on a given hardware platform. Consequently, ‘guest’ OS(es) then run at a second level above the hardware whereby all access to the hardware is controlled by the hypervisor software. Specifically, the details of the hardware are effectively abstracted by the hypervisor code and each OS runs in a virtual machine. In this way it is possible to allow two or more OSes to run on a single processing core with each perceiving that it is the only OS running on that processing core. In alternative embodiments of the inventions, suitable software which may work instead of a hypervisor may also be implemented to provide OS virtualization. Nevertheless, for the sake of simplicity, the application describes the invention in terms of hypervisor utilization. But, it should be understood that the invention is not limited only to hypervisor technology to virtualize an OS.

Accordingly, the OSes are running in a virtual environment whereby access to memory, processor scheduling, etc. are all handled by the hypervisor. In such an environment, it is relatively less complex to change the underlying hardware without having to change the OS code. One such conventional application of hypervisors that adapt the OS/processing core relationship without changing the OS is to allow a single OS to run on multiple processing cores (which may all share access to a single memory system). Each core runs an instance of the hypervisor and the respective hypervisors communicate with each other to schedule the OS threads across the processing cores—each thread of the OS oblivious to the fact that the threads are not all running on a single processor. Importantly, this process of running an OS over a hypervisor in a virtual machine can be done for 3rd party OSes such as Windows Mobile and Linux without having to make changes within the 3rd party software.

One embodiment of this invention may be implemented in a mobile phone Application-Specific Integrated Circuit (“ASIC”) containing two ARM™ processing cores—e.g., one core for the modem stack and one core for the UI OS. Each core has the same access to all the hardware peripherals (as in the existing BCM2152, BCM2153 and BCM21551 manufactured by Broadcom Corporation™, of Irvine, Calif.). If each of the OSes are ported to work over a hypervisor that runs on each processing core then the OSes function as before. If one of the cores—e.g., the lowest power one—is chosen as a periodic wake-up chip, the respective hypervisors can be configured to run the periodic wake-up threads on that core only. Consequently, only one processing core needs to be powered up during idle periods. Thus, as long as the software instructs the UI OS wake-ups to be concurrent with modem OS wake-ups, this approximately halves the power consumption of wake-up and sleep functionality because only one core is being awakened rather than two cores. The power saving is realized because the power consumption associated with the waking and putting to sleep of the second core is eliminated.

A further advantage to this system is that the non-waking core can safely be put in a very deep sleep—i.e., a relatively very low power consumption state—possibly saving more power even if there is an associated wake-up latency—i.e., the amount of time it takes for a core to transition from a sleep state to an operational state—as the other core can handle processing until it is awake. Also any inter-OS communication required during the periodic wake-ups may have a lower latency as the threads will be running on the same awake core—thus minimizing the duration of the wake-up and reducing power consumption.

Systems and methods according to the invention could be implemented, for example, on the BCM2152, BCM2153 and BCM21551 all of which have a modem stack core and a UI OS core and all of which have equal access to memory and peripherals from both cores.

Existing hypervisor technology works with many conventional UI OSes and modem OSes and allows for them both to run on a single processor. This allows for threads from different OSes to be inter-twined in priority for scheduling so the hypervisor task scheduler can work in collaboration with existing sleep control code to implement this invention.

In summary, systems and methods according to the invention have provided mobile phone power saving without the need for major changes in any of the existing software or in the delivered functionality of 3rd party OSes. Furthermore, systems and methods according to the invention preferably do not require changes to any known hardware to save power.

A more specific statement of the invention may be as follows. Conventional hypervisor technology allows a single core to be designated for more than one application stack, so, theoretically, a device may require fewer processing cores than the same device without the hypervisor. Nevertheless, many devices continue to maintain a dedicated core processor for each individual application stack. In these devices, the invention provides systems and methods, which may include appropriately configured hypervisors, that select certain categories of tasks from each of a number of multiple application stacks and route the tasks in these categories to a predetermined processor core. Such selected task categories may include periodic tasks which are performed when the processors are in an idle state. By routing some or all periodic tasks from a number of different applications to a single processor, the invention avoids redundant power-cycling of processor cores.

The scope of the invention also extends to less than a full hypervisor takeover of the OSes and implementation of each of the OSes in a virtual machine. For example, only the code in the OS threads that are periodically woken up can be put on one core by shifting the code associated with these threads into one OS.

There are other processing cores in many phones which could also be made to work over the hypervisor so their respective wake-up threads can run on the one core. One example of another processing core is the GPS device which, in certain implementations, has periodic communication with the modem OS which would be optimized in terms of power consumption using this invention.

This invention may be yet further extended to other embedded devices that run off of a battery—an example may be a device with a WiFi core that has to wake to receive messages and another core that maintains a user display.

FIG. 1 shows a schematic diagram of a cell phone 150 that could be used for systems and methods according to the invention. Cell phone 150 preferably include components HSDPA Transmitter DAC 102, HSDPA RF Control 104, HSDPA RX ADC 106, EDGE¹ TX DAC 108, EDGE RF Control 110, and EDG RX ADC/DigiRF 112 (each of which forms a portion the hardware for converting the digital signal from the modem to an analogue RF signal for the antenna and vice-versa). WCDMA²/HSDPA RF subsystem 114, GSM/GPRS/EDGE subsystem 116, and antenna 118 are for establishing a connection between the phone and the cell. ¹Enhanced Data rates for Global Evolution—EDGE uses the same spectrum allocated for GSM900, GSM1800 and GSM1900 operation. Instead of employing GMSK (Gaussian Minimum Shift Keying) EDGE uses 8PSK (8 Phase Shift Keying) producing a 3-bit word for every change in carrier phase. This effectively triples the data rate offered by GSM. The use of EDGE enables GSM to increase the data rates that can be offered to users of the GSM spectrum.²WCDMA—Wideband Code Division Multiple Access—An ITU (International Telecommunications Union) standard derived from CDMA (Code Division Multiple Access) technology.

Applications Stack Processor 120, GSM/GPRS/EDGE/WCDMA/HSDPA Modem Stack Processor 122, WCDMA/HSDPA Modem 124 and GSM/GPRS/EDGE Modem DSP 126 are the core processing logic and further contain relevant mobile phone communications protocols.

Finally, components TV 128, IR (Infrared) 130, UART 132 (Universal Asynchronous Receiver/Transmitter—i.e., hardware that translates data between parallel and serial interfaces) external memory control 134, (U)SIM³ 136, SDIO (Secure Digital Input/Output (SDIO) is a standard for devices that feature interchangeable memory options) 138, camera 140, LCD 142, GPIO/Keypad 144, USB interface 146, and audio 148 are all for connections to phone peripherals. 32 kHz XTAL 152 (an oscillator that uses a quartz crystal to generate a frequency) is coupled to PMU (Power Management Unit) which is, in turn, coupled to CLK (Clock) 156 and 12C Bus 158. Furthermore, battery 160, charger 162, backlight 164, and vibrator 168 (or other tactile feedback) are shown schematically for illustration. ³USIM—UMTS Subscriber Identity Module Usually referred to as a SIM card, the USIM (UMTS Subscriber Identity Module) is the user subscription to the UMTS mobile network. The USIM contains relevant information that enables access onto the subscribed operator's network.

Applications stack processor 120 and modem control processor 122 each represent a separate core processor. In one set of circumstances, processor 120 may receive a user inputted number and then receive a send command. Baseband processor may then transfer the inputted number to modem processor 122 in order to make the cell phone call. Each processor typically has an OS residing in its one respective Random Access Memory (“RAM”). Each respective processor provides services such as memory management, scheduling, etc. Accordingly, the phone shown schematically in FIG. 1 may provide a platform for implementation of software according to the invention as will be explained in more detail below.

FIG. 2 shows a schematic version of the conventional operation of a cell phone having two core processors 206 and 214, such as the cell phone schematically depicted in FIG. 1. The cell phone in FIG. 2 typically provides telecommunication operations as shown in 202 and other applications as shown at 210. As described in FIG. 1, the cell phone includes telecom stack 204 (alternatively referred to herein as a “modem stack”), to control the telecommunications operations, and applications stack 212 to control the other cell phone applications. Core processor 206 handles the processing functions required by telecom stack 204. These processing functions typically require interaction with the telecom peripherals 208. Core processor 214 handles the processing functions required by applications stack 212. These processing functions require interaction with the peripherals such as the USB port, the camera, etc. 216.

FIG. 3 shows a schematic version of the conventional operation of a hypervisor. FIG. 3 includes the telecom operations, as shown in 302, the other applications, as shown at 304, the telecom stack, the applications stack, and a security stack (shown together at 306), the hypervisor 308, a single CPU core processor 310, and the various peripherals at 312.

Thus, hypervisor 308 has allowed for the removal of one of the CPU core processors. Accordingly, known hypervisor technology reduces bill of material for cell phones and may mitigate certain security concerns.

Thus, in certain conventional situations, hypervisors have been used to obviate the need for multiple processing cores.

Nevertheless, certain cell phone platforms which continue to use multiple core processors may still benefit, according to the invention, from hypervisor technology. FIG. 4 shows a schematic diagram of a cell phone that may benefit from selectively-applied hypervisor technology according to the invention.

Telecom stack 402 preferably may implement processing threads 1.1 404 and 1.2 406. For the purposes of this application, processing threads indicate the communication between the application stack and the processing cores regarding tasks to be performed by the processing cores on behalf of the application stacks. Applications stack 408 may implement processing threads 2.1 410 and 2.2 412.

In a method according to the invention, threads 1.1 and 2.1 may be idle threads which are selected to run on core processor 418 whereas threads 1.2 and 2.2 may be non-idle threads which are selected to run on their own core processors, 418 and 420, respectively. A hypervisor instance runs over a single processor core and communicates with that core. Accordingly, hypervisor 414 is configured to run thread 2.1 410 on core 418. Hypervisor 414 preferably can run thread 2.1 410 on core 418 because the code for thread 2.1 410 resides in RAM which both hypervisors 414, 416 and cores 418, 420 have access to.

The selection of threads 1.1 and 2.1 may preferably be implemented in hypervisor 414, transparent to the operation of the application stacks 408.

FIG. 5 shows the relative advantage of such an implementation. FIG. 5 shows a diagram 500 of the power consumption over time for a conventional processor core. In area 502, a first amount of power is consumed when the core is waking up. For the purposes of this application, the power consumed by “waking up” a processor may include the power consumed by turning ON the processor, activating the memory associated with the processor, ramping up the processor clock (when the clock turns ON, it also takes time for the clock to settle) and other power consuming tasks associated with bringing a processor up to speed. Area 504 shows that, even after the core has reached a level at which it can operate, an additional amount of power is consumed prior to the core being fully operational. Area 506 shows the power consumed when the core is awake and fully functional.

Area 508 shows that when the core begins to return to sleep, the core continues to consume power at a high level even though it no longer operates at a level of being awake. For the purposes of this application, the power consumed by putting a processor “to sleep” may include the power consumed waiting for the memory to stop drawing current, the power consumed waiting for the clock to clear a hysteresis period, and the power consumed by the processor itself when it checks to make sure the processor has no tasks remaining, just to name a few exemplary power-consuming tasks performed by the processor when going to sleep. Finally, area 510 shows the power consumed when the core is returning to a sleep state.

It should be noted that the area (which represents total power consumption) under the entire power consumption curve, or some substantially similar curve, shown in FIG. 5 is required for each processor that needs to be awakened. Accordingly, a relatively large amount of power is wasted when two processors are woken up because all the unutilized power in areas 502, 504, 508, and 510 is duplicated without deriving any operational benefit.

Whereas conventional devices perform the same tasks on multiple processors, methods according to the invention, on the other hand, use a hypervisor to selectively route certain tasks to a single processor. In one embodiment of the invention such tasks may include tasks that are periodically performed when the device is in a sleep state. Such processes may be enabled at least through the implementation of hypervisor technology using multiple processor cores. The hypervisor technology preferably allows the direction of tasks to predetermined processors at least for the purposes of reducing power consumption.

Additional advantages obtained by the invention include increased speed when running the periodic tasks. The increased speed reduces power consumed by reducing the time that the processor is operating. The increased speed is obtained by not requiring inter-processor communication during the periodic tasks because only a single processor is performing the periodic tasks during idle state and any inter-stack communication is handled directly on that processor.

FIG. 6 shows a diagram 600 of the power consumption over time for a processor core according to the invention. In area 602, the first amount of power consumed when the core is waking up is substantially equivalent to area 502. The amount of power consumed in area 604 the additional amount of power is consumed prior to the core being operational is substantially equivalent to area 504.

The true power savings, however, is evident in area 606. Area 606 extends over a substantially longer time than area 506 because area 606 represents the tasks that now are run from a single processor instead of dual processors. Accordingly, the power consumed by the single processor is greater. However, there is no additional power consumed by the wake-up and going to sleep of a second processor.

Furthermore, inter-processor communication is reduced to zero for the periodic tasks because a single processor is performing all the periodic tasks. For example, the application stacks need to talk to one another for certain periodic tasks. One such periodic task that requires interaction between the stacks is when the application stack requests information regarding the signal strength from the modem stack. The application stack may be requesting such information at least in order to update the signal strength display on the cell phone.

It should be noted that area 608, when the core continues to consume power at a high level even though it no longer operates at a level of being awake, may be substantially the same as area 508. Finally, area 610, the power consumed when the core is returning to a sleep state, may be substantially the same as area 510.

In certain embodiments of the invention, when one of the processors is selected to be the processor that provides the idle time periodic processing, the other processor(s) may be redesigned such that it can be put in a relatively lower state of power consumption during its respective sleep period—i.e., the secondary, less-used, processor(s) may be designed without a quick wake-up or a quick going to sleep time. Rather, the second processor can wake up more slowly and go to sleep more slowly than the first processor in order to save additional power. For the time period when the second processor is waking up and going to sleep, its tasks may be covered by the first processor, as needed.

Thus, it has been shown that, in a device that utilizes a hypervisor to allocate processing tasks between multiple processors, substantial power savings can be realized by running certain periodic tasks through a single processor.

It should be noted that while the description herein relates to cell phones, nevertheless, the systems and methods described relate readily to other devices that include multiple application stacks and multiple processing cores. One such category of device that may include multiple processing cores and perform periodic tasks during an idle state is a digital camera, or a digital video camera.

Many digital cameras are battery-powered. Accordingly, power consumption is an important factor in the design of such cameras. Furthermore, many digital cameras consume a large amount of power when idle. It would be advantageous, therefore, to implement systems and methods according to the invention as described herein for multi-processing core digital cameras and/or digital video cameras.

Other possible implementations of the invention may include multi-processor digital audio players such as MP3 players—e.g., the iPod manufactured by Apple Computer, Inc. of Cupertino, Calif., or other suitable, portable electronic device.

FIG. 7 shows a single or multi-chip module 702 according to the invention, which can be one or more integrated circuits, in an illustrative data processing system 700 according to the invention. Data processing system 700 may include one or more of the following components: I/O circuitry 704, peripheral devices 706, multiple processing cores 708 and memory 710.

These components are coupled together by a system bus or other interconnections 712 and are populated on a circuit board 720 which is contained in an end-user system 730. System 700 is configured for use in a mobile phone according to the invention. While system 700 represents a generic embedded devie with multiple processing cores which, according to the invention can use a hypervisor to wake a single processor for idle tasks, nevertheless, it should be noted that system 700 is only exemplary, and that the true scope and spirit of the invention should be indicated by the following claims.

Aspects of the invention have been described in terms of illustrative embodiments thereof. A person having ordinary skill in the art will appreciate that numerous additional embodiments, modifications, and variations may exist that remain within the scope and spirit of the appended claims. For example, one of ordinary skill in the art will appreciate that the steps illustrated in the figures may be performed in other than the recited order and that one or more steps illustrated may be optional.

Thus, systems and methods for reducing power consumption in a mobile phone have been described. Persons skilled in the art will appreciate that the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation, and the present invention is limited only by the claims which follow. 

1. A method for reducing power consumption in a mobile phone, the mobile phone comprising a plurality of processing cores and a plurality of application stacks, the method comprising: using a hypervisor to allocate processing threads to the multiple processing cores; and using the hypervisor to allocate selected periodic threads from each application stack to a selected one of the plurality of processing cores.
 2. The method of claim 1 wherein one of the applications stacks is a telecommunications applications stack and one of the multiple processing cores corresponds to the telecommunications application stack.
 3. The method of claim 1 wherein one of the applications stacks is a software peripheral stack and one of the multiple processing cores corresponds to the software peripheral stack.
 4. The method of claim 1 further comprising selecting the periodic threads from each application stack based at least on whether the periodic threads require inter-processor communications.
 5. The method of claim 1 wherein the selected one of the plurality of processing cores turns ON and ramps up a processor clock faster than a non-selected one of the plurality of processing cores turns ON and ramps up a processor clock.
 6. The method of claim 1 wherein the selected one of the plurality of processing cores comprises a memory that stops drawing current in a shorter time after power-down than the memory associated with a non-selected one of the processing cores.
 7. The method of claim 1 wherein the selected one of the plurality of processing cores determines whether the selected processing core has any tasks remaining prior to turning OFF in a shorter time than a non-selected one of the processing cores determines whether the non-selected processing core has any remaining tasks prior to turning OFF.
 8. A mobile phone comprising: a plurality of application stacks; a plurality of processor cores, each of the application stacks corresponding to one of the plurality of processor cores; and a hypervisor that, in a first state, allocates tasks from each of the application stacks to the processor core that corresponds to the respective application stack, and, in a second state, allocates selected tasks from the plurality of application stacks to a single processor core.
 9. The mobile phone of claim 8 wherein the first state is a non-idle state.
 10. The mobile phone of claim 8 wherein the second state is an idle state.
 11. The mobile phone of claim 10 wherein the tasks allocated in the second state are periodic tasks.
 12. The mobile phone of claim 8 wherein the plurality of application stacks comprise at least two stacks selected from a software peripheral stack, a mobile TV stack, a modem stack, a Wi-Fi stack, and a Bluetooth stack.
 13. The mobile phone of claim 8 wherein the tasks that are allocated in the second state to a single processor are selected, at least in part, based on whether the selected tasks require inter-processor communication.
 14. The mobile phone of claim 8 wherein the selected one of the plurality of processing cores comprises a turn-ON time that that is shorter than the turn-ON time of a non-selected one of the plurality of processing cores.
 15. The mobile phone of claim 8 wherein the selected one of the plurality of processing cores comprises a memory that stops drawing current following turn OFF relatively faster than the amount of time that a memory of a non-selected one of the plurality of processing cores stops drawing current following turn OFF.
 16. The mobile phone of claim 8 wherein the selected one of the plurality of processing cores determines whether the selected processing core has any remaining tasks prior to turning OFF in a shorter time than a non-selected one of the processing cores determines whether the non-selected processing core has any remaining tasks prior to turning OFF.
 17. A method for reducing power consumption in a mobile electronic device, the device comprising multiple processing cores, each of the multiple processing cores corresponding to a single application stack, the method comprising: using a hypervisor to allocate processing threads to the multiple processing cores; and using the hypervisor to allocate selected periodic threads from each application stack to a selected one of the plurality of processing cores.
 18. The method of claim 17 wherein the device is one of a mobile phone, a digital camera, and an digital audio player.
 19. The method of claim 17 wherein one of the applications stacks is a software peripheral stack and one of the multiple processing cores corresponds to the software peripheral stack.
 20. A mobile phone comprising: a plurality of software components resident in a mobile phone memory, each of the components that relates to a particular software application; a plurality of processor cores; and an operating system virtualizing component that, in a first state, allocates tasks from each of the software components to a single processor core that corresponds to the software component, and, in a second state, allocates selected tasks from the plurality of software components to a single processor core. 